package com.ygp.lang;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
//import java.util.stream.Collectors;

/**
 * <Description> <br>
 *
 * @author linmiaolai@sanyygp.com<br>
 * @version 1.0<br>
 * @date 2021/09/15 <br>
 */
public class TestUser {
    public static void main(String[] args) {
       /* User u1 = new User("alai", 28);
        User u2 = new User("bb", 29);
        User u3 = new User("cc", 6);
        User u4 = new User("ocean", 17);
        List<User> sourceList = Arrays.asList(u1, u2, u3, u4);
        List<User> users = new ArrayList<>();
        users = sourceList.stream().filter(e -> e.getAge() > 6).collect(Collectors.toList());
        users.forEach(e -> e.setAge(30));
        System.out.println(sourceList);*/
    }
}
